package router

import (
	"gin-vue-admin/controller"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitMenuRouter(Router *gin.RouterGroup) {
	MenuRouter := Router.Group("menu").Use(middleware.OperationRecord())
	{
		MenuRouter.GET("getMenuList", controller.GetMenuList) // 分页获取菜单列表
		MenuRouter.GET("getMenuTree", controller.GetMenuTree) // 获取树形菜单
	}
}
